import formBuilder from "@/comps/form/formBuilder";
import api from "./api";
import apiGrade from "@/pages/v1/study/Grade/js/apiGrade";
/*
fb.addText("name","名称",3)
fb.addText("grade","年级",3)

* */
export default {
    main:function () {
        let fb = formBuilder()
        fb.setLabelWidth(100)

        fb.addText("name","名称",3)
        fb.addSelect("gradeId","年级",3).setApi(apiGrade.urlChoice)

        return fb
    },
    other:function () {
        let fb = formBuilder()
        fb.setLabelWidth(100).setLabelPosition("right")

        return fb
    }
}